package com.kim.useroauth.server.requst;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 授权码登陆模式DTO
 */
@Data
@ApiModel(value = "ReqWeChatLoginDTO", description = "授权码登陆模式DTO")
public class ReqGetTokenByCredentialsDTO {

    @NotBlank(message = "授权码登陆grantType值为空")
    @ApiModelProperty(value = "授权码登陆 grantType", required = true)
    private String grantType;

    @NotBlank(message = "授权码登陆clientId值为空")
    @ApiModelProperty(value = "授权码登陆 clientId", required = true)
    private String clientId;

    @NotBlank(message = "授权码登陆clientSecret值为空")
    @ApiModelProperty(value = "授权码登陆 clientSecret", required = true)
    private String clientSecret;

    @NotBlank(message = "授权码登陆scope值为空")
    @ApiModelProperty(value = "授权码登陆 scope", required = true)
    private String scope;
}
